package Bank;

import java.math.BigInteger;
import java.util.ArrayList;
import Bank.MD5Utils;
import org.apache.log4j.Logger;
import DBConnection.DBAPI;

import javax.jws.soap.SOAPBinding;

public class User {

    private BigInteger id;
    private ArrayList<Account> accounts;
    private String name;
    private String mail;
    private String phone;
    private String password;
    private String login;

    public User(BigInteger id, ArrayList<Account> accounts, String name, String mail, String phone, String password, String login) {
        this.id = id;
        this.accounts = accounts;
        this.name = name;
        this.mail = mail;
        this.phone = phone;
        this.password = password;
        this.login = login;
    }

    public ArrayList<Account> getAccounts() {
        return accounts;
    }

    public String getName() {
        return name;
    }

    public String getMail() {
        return mail;
    }

    public String getPhone() {
        return phone;
    }

    public String getLogin() {return  login;}

    public String getPassword() {
        return this.password;
    }

    public BigInteger getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

}